#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>

/// <summary>
/// TODO
/// </summary>
int FileExists(const char *filename)
{
	int handle = -1;
	if ((handle = open(filename, O_RDONLY)) < 0)
		return -1;
	close(handle);
	return 0;
}
